package com.jxb.ractBase;

import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

/**
 * 类注释
 *
 * @author jiaobo
 * @date Created in 2024/10/23 20:48
 **/
public class ReactTest {

    public static void main(String[] args) {
        //操作单个数据
        Mono.just("123").map(item->item.length()).subscribe(System.out::println);
        //操作多个数据
        Flux.just("123","4567").map(item->item.length()).subscribe(System.out::println);
    }

}
